Lok Sabha Speaker Om Birla and Foreign Secretary Vikram Misri attended the swearing-in ceremony.
The development comes a day after clashes broke out in Parliament on Sunday between pro-government MPs and opposition lawmakers over differences over the approval of four members of the pro-China President's cabinet.
Describing the comments as "uncalled for", he said that the ruling party has these "extreme elements" who are calling for India out.
Modi is likely to hold separate bilateral meetings with the foreign leaders.
The attorney general's office filed the case on Sunday, the same day when clashes broke out in the House between pro-government MPs and opposition lawmakers following differences over the approval of four members of his cabinet.
In addition to participating in the swearing-in ceremony, the leaders will attend a banquet hosted by President Droupadi Murmu at Rashtrapati Bhavan, it said.
The principal director of plans, policy, and resources management for the Maldives National Defence Force, Colonel Ahmed Mujuthaba Mohamed said that discussions are underway for withdrawing Indian troops from the Maldives.
Engagement with neighbours is a strategic imperative, and not an option, asserts Rup Narayan Das.
Sharif was the only prime minister from India's neighbourhood who wasn't invited to the swearing-in ceremony in New Delhi.
The row erupted on a day President Dr Mohamed Muizzu embarked on a week-long visit to China.
There is a view that heavyweight portfolios like home, finance, defence and external affairs besides education and culture, two ministries with strong ideological hues, will be kept by the BJP, while its allies can get anywhere between five to eight cabinet berths.
In a statement on Sunday, the Maldivian foreign ministry said they were aware of the "derogatory remarks on social media platforms against foreign leaders and high-ranking individuals".
Along with Modi, senior BJP leaders including Rajnath Singh, Amit Shah, Nitin Gadkari, Nirmala Sitharaman and S Jaishankar, all ministers in Modi 2.0 Cabinet, took oath as cabinet ministers at the Rashtrapati Bhavan. In all, 71 ministers were sworn-in along with Modi, taking the strength of the Union council to 72.